import { checkUserName, checkPassWord } from './utils/check.js'

document.querySelector('.login-btn').addEventListener('click', () => {
  var username = document.querySelector('.username').value
  var password = document.querySelector('.password').value

  if (!checkUserName(username)) {
    alert('用户名输入的长度不够')
  }
  if (!checkPassWord(password)) {
    alert('密码输入的长度不够')
  }

})